package com.fzn.spring5.aopanno;

import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;

/**
 * @program: spring5_demo4
 * 描述：   @Order(1)    设置增强类的优先级
 *         数字类型的越小优先级越高
 * @author: fzn
 * @create: 2022-02-27 12:54
 **/
@Component
@Aspect
@Order(1)
public class PersonProxy {

    @Before(value = "execution(* com.fzn.spring5.aopanno.User.add(..))")
    public void before(){
        System.out.println("PersonProxy before....");
    }
}